﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Text;

public partial class html : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //string username;
        //bool isCookiesUsernameNull = (Request.Cookies["username"] == null);
        //if (isCookiesUsernameNull)
        //{
        //    username = "originalsec";//打开默认数据
        //}
        //else if (Request.Cookies["username"].Value == "undefined")
        //{
        //    username = "originalsec";//打开默认数据
        //}
        //else
        //{
        //    username = Request.Cookies["username"].Value;
        //}
        //string filename = MapPath("") + "//userdata//" + username + "//sendData.json";
        //StringBuilder htmlTable = new StringBuilder();
        //if (File.Exists(filename))
        //{
        //    Xmlserdeser xser = new Xmlserdeser(MapPath("") + "//userdata//", username);
        //    page myPage = xser.Mpage;
        //    htmlTable.Append("<table style='width:100%'>");
        //    for (int i = 0; i < myPage.Mtables.Count; i++)
        //    {
        //        htmlTable.Append("<tr><td style='width:20%;'></td><td  style='border:1px solid #99bb99;width:700px'><table>");
        //        table tmpTable = myPage.Mtables[i];
        //        for (int j = 0; j < tmpTable.Mrows.Count; j++)
        //        {
        //            htmlTable.Append("<tr><td>");
        //            row tmpRow = tmpTable.Mrows[j];
        //            htmlTable.Append("[<a >"+tmpRow.Ct+"</a>]");
        //            for (int k = 0; k < tmpRow.Mrowwebs.Count; k++)
        //            {
        //                web tmpWeb = tmpRow.Mrowwebs[k];
        //                htmlTable.Append("<a target='_blank' href='" + tmpWeb.Link + "'>" + tmpWeb.Name + "</a>");
        //            }
        //            htmlTable.Append("</td></tr>");
        //        }
        //        htmlTable.Append("</table></td><td></td></tr><tr><td><td><td></td></td></td></td></tr>");
        //    }
        //    htmlTable.Append("</table>");
        //}
        //contentDiv.InnerHtml = htmlTable.ToString();
    }
}